package com.qf.utils;

import java.util.Random;

/**
 * 2019/11/24
 * 郭程鹏
 * gcp1909
 * 面向代码面向君,不负时光不负卿
 */

public class NumberUtil {
    public static String getNumber(int length) {

        String source = "0123456789";
        Random r = new Random();
        StringBuilder number = new StringBuilder();
        for (int j = 0; j < length; j++) {
            number.append(source.charAt(r.nextInt(10)));
        }
        return number.toString();
    }
}
